package com.itaming.lycheeframework.support.tree;

import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * 树节点基础类
 *
 * @author A.Ming
 */
@Data
public class BaseTreeNode<T extends TreeNode<T, S>, S extends Serializable> implements TreeNode<T, S> {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    private S id;

    /**
     * 父级ID
     */
    private S parentId;

    /**
     * 子节点列表
     */
    private List<T> children;

}
